#集群配置文件路径
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
#添加仓库
helm repo add bitnami https://charts.bitnami.com/bitnami
#安装redis
helm install redis \
             --set architecture=standalone \
             --set-string auth.password=123456 \
             --set master.persistence.enabled=false \ # 数据不需写入持久卷
             --set master.persistence.medium=Memory \ # 数据写入内存
             --set master.persistence.sizeLimit=1Gi \ # 使用的内存大小不超过一个g
             bitnami/redis \
             --kubeconfig=/etc/rancher/k3s/k3s.yaml
kubectl port-forward svc/redis-master --address=192.168.56.109 6379:6379
